
The examples in this folder show how a Java program can
redirect its own standard streams to files. This does not,
by itself, seem like a very useful thing to be able to do.
It is almost exactly the same idea as just opening a file
for reading or writing (compare RedirectStdinAndStdoutToFile.java
to EchoFromFileToFile.java). But this is a good starting
point for understanding the Java classes and methods that
are used for IPC.

The most important reason for a process to redirect its
own stdin and stdout streams is so that it can have a child
process "inherit" those streams. We will discuss a child
process "inheriting" its parent's standard streams in a later
folder.